﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Services;

namespace ActionServices
{
    public interface ISubject_TeacherActionService : BaseActionService
    {
        long Save(object _model);
        IList<CoreData.Subject_Teacher> GetListByLINQ(Func<CoreData.Subject_Teacher, Boolean> _where);
        CoreData.Subject_Teacher GetOneByLINQ(Func<CoreData.Subject_Teacher, Boolean> _where);
        bool Delete(object _model);
        bool UpdateIsDelete(object _model);
    }


   public partial class Subject_TeacherActionService : ISubject_TeacherActionService
   {
       Subject_TeacherService Service;

       public Subject_TeacherActionService()
       {
           Service = new Subject_TeacherService();
       }

       #region Main Method

       public virtual long Save(object _model)
       {
           return Service.Save(_model);
       }

       public virtual object GetByID(long _id)
       {
           return Service.GetByID(_id);
       }

       public virtual object GetList()
       {
           return Service.GetList();
       }

       public virtual IList<CoreData.Subject_Teacher> GetListByLINQ(Func<CoreData.Subject_Teacher, Boolean> _where)
       {
           return Service.GetListByLINQ(_where);
       }

       public virtual CoreData.Subject_Teacher GetOneByLINQ(Func<CoreData.Subject_Teacher, Boolean> _where)
       {
           return Service.GetOneByLINQ(_where);
       }

       public virtual object GetList(string _searchstring)
       {
           return Service.GetList(_searchstring);
       }

       public virtual bool Delete(object _model)
       {
           return Service.Delete(_model);
       }
       
       public virtual bool UpdateIsDelete(object _model)
       {
           return Service.UpdateIsDelete(_model);
       }
       #endregion


       #region Other Method
       #endregion

   }
}
